#ifndef CUNDOBUFFER_H
#define CUNDOBUFFER_H
#define u32 unsigned long
#define u16 unsigned short
#include <vector>
struct sUndo{
u16* copyAddress;
std::vector<u16> buffer;


};
class cUndoBuffer{//Resizing rooms will invalidate undobuffer
public:

	~cUndoBuffer();
	cUndoBuffer();
	int Set(u32 size,u16* Layer);
    int Undo();
    sUndo UndoBuffer[16];
	int UndoNum;
    int MoveUp();

};
#endif